package day03;

import java.util.Scanner;

public class looptest2 {                                //非函数方法计算平方根
    public static void main(String[] args) {
        System.out.println("请输入大于等于2的整数");
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int i;
        for (i = 1; i <= x; i++){
            if (i*i>x) break;
            else if (i*i==x) {
                i++;
                break;
            }
        }
        System.out.println(i-1);
    }
}
